package com.nuoniu.sibanyun.service.crm.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.crm.CrmRetailLevel;
import com.nuoniu.sibanyun.mapper.crm.CrmRetailLevelMapper;
import com.nuoniu.sibanyun.service.crm.ICrmRetailLevelService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 分销等级 服务实现类
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-24
 */
@Service
public class CrmRetailLevelServiceImpl extends ServiceImpl<CrmRetailLevelMapper, CrmRetailLevel> implements ICrmRetailLevelService {

    @Override
    public List<CrmRetailLevel> getList() {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.orderByDesc("level");
        return list(wrapper);
    }
}
